package com.example.mapper;

import com.example.entity.Employee;
import com.example.entity.Question;
import com.example.entity.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StudentMapper {

    @Select("select * from student where student_name = #{studentName}")
    Student selectByName(String studentName);

    List<Student> selectAll(Student student);

    void insert(Student student);

    void update(Student student);

    @Delete("delete from `student` where student_id=#{studentId}")
    void delete(Integer id);

    @Select("select * from student where student_id = #{studentId}")
    Student selectById(Integer studentId);
}
